package ooday03;

public class Dog extends Animal implements Swim{

    Dog(String name, int age, String color){
        super(name, age, color);
    }

    void lookAfterHome(){
        System.out.println(name+"正在看家...");
    }
    void eat(){
        System.out.println(age+"岁的"+color+"色"+name+"在啃骨头");}


    @Override
    public void swim() {
        System.out.println(age+"岁的"+color+"色"+name+"在游泳");
    }
}
